.class public Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity$UnlockOfferWallTemplate;
.super Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity$OfferWallTemplate;
.source "OfferWallActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "UnlockOfferWallTemplate"
.end annotation


# static fields
.field public static final EXTRA_UNLOCK_ITEM_ID_KEY:Ljava/lang/String; = "EXTRA_UNLOCK_ITEM_ID_KEY"

.field public static final EXTRA_UNLOCK_ITEM_NAME_KEY:Ljava/lang/String; = "EXTRA_UNLOCK_ITEM_NAME_KEY"

.field public static final PARAM_UNLOCK_ITEM_ID_KEY:Ljava/lang/String; = "itemid"

.field public static final PARAM_UNLOCK_ITEM_NAME_KEY:Ljava/lang/String; = "item_name"

.field private static final UNLOCK_URL_KEY:Ljava/lang/String; = "unlock"


# instance fields
.field private mUnlockItemId:Ljava/lang/String;

.field private mUnlockItemName:Ljava/lang/String;

.field final synthetic this$0:Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity;


# direct methods
.method public constructor <init>(Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 336
    iput-object p1, p0, Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity$UnlockOfferWallTemplate;->this$0:Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity;

    invoke-direct {p0, p1}, Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity$OfferWallTemplate;-><init>(Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity;)V

    return-void
.end method


# virtual methods
.method public addAdditionalParameters(Ljava/util/Map;)Ljava/util/Map;
    .locals 2
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .prologue
    .line 372
    .local p1, params:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;"
    if-nez p1, :cond_0

    .line 373
    new-instance p1, Ljava/util/HashMap;

    .end local p1           #params:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;"
    invoke-direct {p1}, Ljava/util/HashMap;-><init>()V

    .line 375
    .restart local p1       #params:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;"
    :cond_0
    const-string v0, "itemid"

    iget-object v1, p0, Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity$UnlockOfferWallTemplate;->mUnlockItemId:Ljava/lang/String;

    invoke-interface {p1, v0, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 377
    iget-object v0, p0, Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity$UnlockOfferWallTemplate;->mUnlockItemName:Ljava/lang/String;

    invoke-static {v0}, Lcom/sponsorpay/sdk/android/utils/StringUtils;->notNullNorEmpty(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 378
    const-string v0, "item_name"

    iget-object v1, p0, Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity$UnlockOfferWallTemplate;->mUnlockItemName:Ljava/lang/String;

    invoke-interface {p1, v0, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 381
    :cond_1
    return-object p1
.end method

.method public fetchAdditionalExtras()V
    .locals 2

    .prologue
    .line 361
    iget-object v0, p0, Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity$UnlockOfferWallTemplate;->this$0:Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity;

    invoke-virtual {v0}, Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "EXTRA_UNLOCK_ITEM_ID_KEY"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity$UnlockOfferWallTemplate;->mUnlockItemId:Ljava/lang/String;

    .line 362
    iget-object v0, p0, Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity$UnlockOfferWallTemplate;->this$0:Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity;

    invoke-virtual {v0}, Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "EXTRA_UNLOCK_ITEM_NAME_KEY"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/sponsorpay/sdk/android/publisher/OfferWallActivity$UnlockOfferWallTemplate;->mUnlockItemName:Ljava/lang/String;

    .line 363
    return-void
.end method

.method public getBaseUrl()Ljava/lang/String;
    .locals 1

    .prologue
    .line 367
    const-string v0, "unlock"

    invoke-static {v0}, Lcom/sponsorpay/sdk/android/utils/SponsorPayBaseUrlProvider;->getBaseUrl(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public shouldStayOpenByDefault()Z
    .locals 1

    .prologue
    .line 386
    const/4 v0, 0x0

    return v0
.end method
